from Page.mp.page_ele import PageElement
from Base.base import Base


class MpHome(Base):

    def __init__(self):
        super().__init__("mp")

    def company_name(self):
        """公司名字"""
        return self.search_ele(PageElement.mp_home_company).text

    def content_manger(self):
        """点击内容管理按钮"""
        self.search_click(PageElement.mp_home_content_manage)

    def public_article(self):
        """点击发布文章"""
        self.content_manger()

        self.search_click(PageElement.mp_home_public_article)
